home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / strip < prev    next >
Text File  |  2001-03-21  |  802b  |  27 lines

  1. Synopsis:
  2.    $strip(<chars> <text>)
  3.    $pass(<chars> <text>)
  4.  
  5. Technical:
  6.    Both functions are used to single out a set of characters within a given
  7.    string.  The $strip() function removes all occurrences of the characters,
  8.    while $pass() returns them.
  9.  
  10. Practical:
  11.    The functions have varying uses.  The $strip() function is often used to
  12.    remove any possibly "dangerous" characters from untrusted input; $pass()
  13.    is convenient for counting the number of times certain characters appear
  14.    in the text.
  15.  
  16. Returns:
  17.    strip: input text with characters removed
  18.    pass:  input characters found in input text
  19.  
  20. Examples:
  21.    $strip(aeoiu hello there)            returns "hll thr"
  22.    $pass(aeiou hello there)             returns "eoee"
  23.  
  24. See Also:
  25.    stripansi(6); tr(6)
  26.  
  27.